﻿Imports System.Diagnostics
Imports log4net
Imports NHibernate
Imports NHibernate.Cfg
Imports System.Collections
Namespace NCS
    Public Class Form1

        Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim configuration As Configuration = Class1.configuration
            Dim factory As ISessionFactory = configuration.BuildSessionFactory()
            Dim session As ISession = factory.OpenSession()
            Dim o As IList
            o = session.CreateCriteria(GetType(muser)).List()
            Me.DataGridView1.DataSource = o
        End Sub

        Public Sub New()

            ' This call is required by the Windows Form Designer.
            InitializeComponent()

            ' Add any initialization after the InitializeComponent() call.

        End Sub
    End Class
End Namespace